<script>

function test(a){
    return function (b){
        return a + b
    }
}

function uncurry(fn){
    return function(...args){
        console.log(args)
        return fn.call(null, ...args)
    }
}

// function F(){}
// F.prototype.concatProps = function(){
//     let args = Array.from(arguments)
//     return args.reduce((prev,next) => `${this[prev]}&${this[next]}`)
// }
// let obj = {
//     name: "gailun",
//     age:10
// }

// const concatProps = uncurry(F.prototype.concatProps)
// concatProps(obj, "gailun", 15)

let result = uncurry(test)
console.log(result(1,4))

</script>